package org.custom.spring.boot.entity.batch;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 账户信息 实体类
 *
 * @author 李坤
 * @date 2022/7/5 10:04
 */
@Data
@TableName(value = "account_info", schema = "batch")
public class AccountInfo implements Serializable {

    @TableId
    @ApiModelProperty(name = "id", notes = "主键ID")
    private String id;

    @ApiModelProperty(name = "userId", notes = "所属用户")
    private String userId;

    @ApiModelProperty(name = "account", notes = "账户编号")
    private String account;

    @ApiModelProperty(name = "balance", notes = "账户余额")
    private BigDecimal balance;

    @ApiModelProperty(name = "accountName", notes = "账户名称")
    private String accountName;

    @Version
    @ApiModelProperty(name = "version", notes = "版本号")
    private int version;

    /**
     * 账户状态（0：正常；1：禁用；2：销户）
     */
    @ApiModelProperty(name = "state", notes = "账户状态")
    private byte state;

}
